home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-06-19 | 2.4 KB | 71 lines |
- /*
- * TvEventHandler.java 1.0 12 Jan 1997
- *
- * Copyright (c) 1996 Krumel & Associates, Inc. All Rights Reserved.
- *
- * This software is provided as is. Krumel & Associates shall not be liable
- * for any damages suffered by licensee as a result of using, modifying or
- * distributing this software or its derivatives.
- */
-
- package symantec.itools.db.awt;
-
- import java.awt.Event;
-
- /**
- * Interface defines the API required by classes to act as handler of events and
- * exceptions. EventHandlers receive events generated by cells, headings, and the
- * table. When an exception occurs within the Grid framework, the exceptions are
- * passed to the event handler for processing. Each application can handle the
- * events and exceptions as appropriate.
- */
- public interface TvEventHandler {
- /**
- * Called by the grid when an event handler is set to allow the handler to make
- * any API calls to customize the grid.
- */
- void setupView(Grid v);
-
- /**
- * Called when a cell level event is generated, ie the cell is not a part
- * of a heading.
- * @param e The cell event
- * @param cell The cell that generated the event.
- */
- boolean handleCellEvent(Event e, TableCell cell);
-
- /**
- * Called when a column heading cell event is generated.
- * @param e The cell event
- * @param cell The cell that generated the event.
- */
- boolean handleColHeadingEvent(Event e, TableCell cell);
-
- /**
- * Called when a row heading cell event is generated.
- * @param e The cell event
- * @param cell The cell that generated the event.
- */
- boolean handleRowHeadingEvent(Event e, TableCell cell);
-
- /**
- * Called when corner cell heading cell event is generated.
- * @param e The cell event
- * @param cell The cell that generated the event.
- */
- boolean handleCornerCellEvent(Event e, TableCell cell);
-
- /**
- * Called when toolbar component generates an event.
- * @param e The cell event
- * @param cell The cell that generated the event.
- */
- boolean handleToolbarEvent(Event e);
-
- /**
- * Called when an exception is generated within the Grid framework.
- * @param pos The cell position that generated the exception
- * @param exc The actual exception thrown
- */
- void handleException(Coordinate pos, Exception exc);
- }